package com.codeoss.framework.view.renderer;

import org.springframework.stereotype.Service;

import com.codeoss.framework.context.YunContext;
import com.codeoss.framework.view.component.Component;
import com.codeoss.framework.view.component.mobile.MNavBar;

@Service("mnavbarRenderer")
public class MNavBarRenderer extends CommonComponentRenderer {
	protected void startRenderView(YunContext yunContext, Component component, ViewSerializeMap viewSerializeMap) {
		super.startRenderView(yunContext, component, viewSerializeMap);
		MNavBar mNavBar=(MNavBar)component;
		viewSerializeMap.put("title", mNavBar.getTitle());
		viewSerializeMap.put("leftArrowVisible", mNavBar.getLeftArrowClickExpression()!=null);
	}
}
